package eventplanner.ejb.exceptions;

public class NoSuchEntityFoundException extends ServiceException {
	private final Class<?> type;

	public NoSuchEntityFoundException(Class<?> type, Object id) {
		super(String.format("The entity of type '%s' with id '%s' could not be found", type.getName(), id.toString()));
		this.type = type;
	}

	public Class<?> getType() {
		return type;
	}
}
